﻿#region License, Terms and Author(s)
//
// BugTraqPie - IBugTraqProvider for (Iron)Python
// Copyright (c) 2009 Atif Aziz. All rights reserved.
//
//  Author(s):
//
//      Atif Aziz, http://www.raboof.com
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion

namespace BugTraqPie
{
    using System.Collections.Generic;

    public interface IBugTraqProvider
    {
        bool ValidateParameters(ValidateParametersParams args);
        string GetLinkText(GetLinkTextParams args);
        string GetCommitMessage(GetCommitMessageParams args);
        string GetCommitMessage2(GetCommitMessageParams args);
        string CheckCommit(CheckCommitParams args);
        string OnCommitFinished(OnCommitFinishedParams args);
        bool HasOptions(HasOptionsParams args);
        string ShowOptionsDialog(ShowOptionsDialogParams args);
    }

    public class ValidateParametersParams
    {
        public object ParentWindow { get; set; }
        public string Parameters { get; set; }
    }

    public class GetLinkTextParams
    {
        public object ParentWindow { get; set; }
        public string Parameters { get; set; }
    }

    public class GetCommitMessageParams
    {
        public object ParentWindow { get; set; }
        public string Parameters { get; set; }
        public string CommonUrl { get; set; }
        public string CommonRoot { get; set; }
        public IList<string> PathList { get; set; }
        public string OriginalMessage { get; set; }
        public string BugId { get; set; }
        public IDictionary<string, string> RevProps { get; set; }
    }

    public class CheckCommitParams
    {
        public object ParentWindow { get; set; }
        public string Parameters { get; set; }
        public string CommonUrl { get; set; }
        public string CommonRoot { get; set; }
        public IList<string> PathList { get; set; }
        public string CommitMessage { get; set; }
    }

    public class OnCommitFinishedParams
    {
        public object ParentWindow { get; set; }
        public string CommonRoot { get; set; }
        public IList<string> PathList { get; set; }
        public string LogMessage { get; set; }
        public int Revision { get; set; }
    }

    public class HasOptionsParams
    {
    }

    public class ShowOptionsDialogParams
    {
        public object ParentWindow { get; set; }
        public string Parameters { get; set; }
    }
}
